package com.oe.market.modules.base.controller;

import com.oe.market.modules.base.model.bean.ServerInfo;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "/")
public class BaseController {

    @RequestMapping(value = "/index")
    @ResponseBody
    public String index() {
        return "集成系统测试成功";
    }

    @RequestMapping(value = "/")
    @ResponseBody
    public String def() {
        return "集成系统测试成功";
    }

    @RequestMapping(value = "/ele/version")
    @ResponseBody
    public String version() {
        return "{" +
                    "\"code\":200," +
                    "\"msg\":\"查询成功\"," +
                    "\"data\":{" +
                        "\"version\":\"" + ServerInfo.version +"\"," +
                        "\"isUpdate\": true" +
                    "}" +
                "}";
    }



}
